package org.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

@Data
public class Houses {
    private String id;  //房源id
    private String landlordId; //房东id
    @NotEmpty
    private String address;  //地址
    @NotNull
    private BigDecimal area;  //面积
    @NotNull
    private BigDecimal price;  //价格
    @NotEmpty
    private String description; //房屋描述
    private String type;  //类型（0卖房，1租房）
    private String status;  //状态（0待审核/1已发布/2已下架/3已成交）
    private String communityId;  //小区id

    private LocalDate createTime;

    private LocalDate updateTime;

    private LocalDate publishTime;   //发布时间
    private String intermediaryId;  //中介id
    private String cover;  //封面
    private String customerId;  //客户id
}
